Ext.define('Admin.common.form.BaseFormPanel',{
	extend:'Ext.form.Panel',
	alias : 'widget.baseFormPanel',
	bodyPadding: '8 8 8 8',
	layout : {type:'table',columns:1},
	defaults:{
        margin:'5 5 5 5',
        labelWidth:70,
        maxWidth : 220
    },
    initComponent : function(){
    	var self = this;
    	if(self.columns && self.columns > 0){
    		self.layout.columns = self.columns;
    	}

        if(self.defLabelWidth && self.defLabelWidth > 0){
            self.defaults.labelWidth = self.defLabelWidth;
        }

        if(self.defMaxWidth && self.defMaxWidth > 0){
            self.defaults.maxWidth = self.defMaxWidth;
        }
 		this.callParent(arguments);
    }
});